<?php
echo $this->headScript()->
        appendFile($this->baseUrl() . "/js/jquery-1.7.1.js")->
        appendFile($this->baseUrl() . "/js/bootstrap/bootstrap.js")->
        appendFile($this->baseUrl() . "/js/jquery.validate.js");

echo $this->headLink()
        ->setIndent('  ')
        ->prependStylesheet($this->baseUrl() . "/css/bootstrap/bootstrap.css")
        ->prependStylesheet($this->baseUrl() . "/css/bootstrap/bootstrap-responsive.css");
?>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" >
    <title>Virtual Labs Manager</title>
    <script type="text/javascript">
        function doSubmit(){
            $('forgot-password-form').submit();
        }
        $(document).ready(function() {
            setTimeout("hideAlert()", 7500);

            $("#login-form").validate({
                rules: {
                    email: {
                        required: true
                    }
                },
                messages: {
                    email: "Email requerido"
                }
            });
        });
    </script>
</head>
<div class="row-fluid">
    <div class="span1"></div>
    <div class="span8">
        <div id="logo">   
            <h2>Olvid&oacute; su password</h2>
        </div>
        <div id="login" >
            <form id="forgot-password-form" action="<?php echo $this->url(array('module' => 'academico', 'controller' => 'login', 'action' => 'passwordforgot')); ?>" method="post">
                <table class="table table-condensed table-striped">
                    <tr><td>Recibir&aacute; un email con un link para solicitar el reinicio de su contrase&ntilde;a. Simplemente siga las instrucciones en el email.</td></tr>
                    <tr><td><input class="input-large" type="text" id="email" name="email" placeholder="ingrese su email"></td></tr>
                    <tr><td><button onclick="doSubmit();" class="btn btn-inverse">Solicitar</button></td></tr>
                </table>
            </form>
        </div>
    </div>
</div>